

exclude_dirs=bak

CXX = g++
CC = gcc
# LD = ld

# LDFLAGS=


# include $(PRJ_PATH)/Makefile.env

common-obj += arm-a64.o
# common-obj += libvixl/

libvixl_OBJS = utils.o \
               a64/instructions-a64.o \
               a64/decoder-a64.o \
               a64/disasm-a64.o
obj = libvixl
libvixl_OBJS := $(addprefix $(obj)/,$(libvixl_OBJS))


libvixldir = libvixl
arm-a64.o-cflags := -I$(libvixldir)

CXXFLAGS += -I$(libvixldir)


common-obj += $(libvixl_OBJS)


define fix_path
	
endef






# common-obj += nn/xx.o

# nn/xx.o: 
# 	echo $@

target: $(common-obj) 
	$(CC) $^ -o assm.o

# %.d:
# %.h:
# %.c:
# %.cc:
# %.cpp:
# %.m:
# %.mak:


%.o: %.c
	$(V) $(CC) $($@-cflags) $(CFLAGS) -c -o $@ $<

%.o: %.cpp
	$(V) $(CXX) $($@-cflags) $(CXXFLAGS) $(CFLAGS) -c -o $@ $<

%.o: %.cc
	$(V) $(CXX) $($@-cflags) $(CXXFLAGS) $(CFLAGS) -c -o $@ $<

# %/: %
# 	echo $@
	# $(MAKE) -C $<